package com.ktjiaotu.action.action01.service;

import com.ktjiaotu.action.action01.Log;

/**
 * @Author: DABINGCHNEGJIAO
 * @CreateTime: 2025-06-06
 * @Description:
 * @Version: 1.0
 */
public class LogServiceImpl implements LogService {
    @Log
    @Override
    public void testMethod1() {
        try {
            Thread.sleep(100); //模拟方法执行时间,让执行这段代码的线程休眠（暂停）100 毫秒
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("testMethod1 executed01");
    }

    @Log
    @Override
    public void testMethod2() {
        try {
            Thread.sleep(150); //模拟方法执行时间,让执行这段代码的线程休眠（暂停）100 毫秒
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("testMethod1 executed02");
    }

    @Override
    public void testMethod3() {
        try {
            Thread.sleep(50); //模拟方法执行时间,让执行这段代码的线程休眠（暂停）100 毫秒
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("testMethod1 executed03");
    }
}
